package com.kuang.springcloud.service;

import com.kuang.springcloud.entities.CommonResult;
import com.kuang.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService
{
    @GetMapping("/payment/create")
    public CommonResult create(Payment payment);
    @GetMapping("/payment/get/{id}")
    public CommonResult getPaymentById(@PathVariable("id") long id);
    @GetMapping("/say")
    public String say();
}
